﻿using System;
using System.Web.UI;
using NotAClue.Web.DynamicData;

namespace DD_Extensions
{
    public partial class Html_Field : System.Web.DynamicData.FieldTemplateUserControl
    {
        protected void Page_Init(object sender, EventArgs e)
        {
            // add tool-tip
            this.SetupTip();

            // add CSS from meta data
            this.ApplyCss();
        }

        //protected override void OnDataBinding(EventArgs e)
        //{
        //    base.OnDataBinding(e);
        //    Literal1.Text = FieldValueEditString;
        //}

        public override Control DataControl
        {
            get
            {
                return Literal1;
            }
        }
    }
}